<?php
/**
 * Created by PhpStorm.
 * User: cc
 * Date: 2023/8/29
 * Time: 3:58 PM
 */

namespace app\common\cachemodel\zlcr3;

use app\common\model\BaseCache;
use think\Log;

class Zlcr3ConsultChatInterceptRecord extends BaseCache
{
    protected $table = 'wechat_backup_07_18_14_43_00.zlcr3_consult_chat_intercept_record';

    public function saveData($data)
    {
        try
        {
            $id = $this->insertGetId($data);
        }
        catch (\Exception $e)
        {
            Log::write('Zlcr3ConsultChatInterceptRecord model => ()异常：' . $e->getMessage() . '失败信息：' . $e->getFile() . ':' . $e->getLine(), 'error', true);
            return 0;
        }
        return $id;
    }
}
